package com.example.teachingSystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.teachingSystem.pojo.entity.SysMenu;
import com.example.teachingSystem.pojo.form.menu.MenuPageQuery;
import com.example.teachingSystem.pojo.vo.MenuInfoVo;
import com.example.teachingSystem.pojo.vo.OptionVo;
import com.example.teachingSystem.pojo.vo.RouteVo;
import com.example.teachingSystem.utils.result.Result;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author 86147
* @description 针对表【sys_menu(菜单管理)】的数据库操作Mapper
* @createDate 2023-12-06 13:56:12
* @Entity com.example.teachingSystem.pojo.entity.SysMenu
*/
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {
    IPage<MenuInfoVo> getMenuPage(Page<SysMenu> page, MenuPageQuery queryParams);

    List<MenuInfoVo> getMenuOptions();

    List<RouteVo> getRoutes(Long roleId);
}




